package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.IdentifyImagesInfo;
import com.xjtu.duansheli.entity.IdentifyInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface IdentifyInfoService extends IService<IdentifyInfo> {
    public List<IdentifyInfo> getAllIdentifyInfo(int current, int size);
    public IdentifyInfo getIdentifyInfoByid(Long id);
    public IdentifyInfo getIdentifyByImid(Long imid);
    @Transactional(readOnly = false,timeout = -1,propagation = Propagation.REQUIRED,isolation = Isolation.REPEATABLE_READ)
    public int addIdentifyInfo(IdentifyInfo identifyInfo);
    public int updateIdentifyInfo(IdentifyInfo identifyInfo);
    public int deleteIdentifyInfo(Long id);
    public int getTotal();
}
